package com.yjj.demo.thread.web;

import com.yjj.demo.thread.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author yangjiajia
 * @time 2021/9/5 0:13
 */
@RestController
@RequestMapping("/ticket")
public class TickController {

    @Autowired
    private TicketService ticketService;

    @GetMapping("/sell1")
    public void sell1() {
        ticketService.sell1();
    }

    @GetMapping("/sell2")
    public void sell2() {
        ticketService.sell2();
    }

    @GetMapping("/sell3")
    public void sell3() {
        ticketService.sell3();
    }
}
